#include <iostream>
#include <stdlib.h>
#include <time.h>
using namespace std;
template<typename T>
int sort (T a[], const int size,T num)
{
		for(int i=0;i<size;i++)
		{
					if(a[i]==num)
					{
					cout<<"position of random value :"<<i;
					return i;
					}
		}
		cout<<"mas don't have this value";
		return -1;

}

void main()
{	
	srand(time(NULL));
	const int size=20;
	int a[size],v;
	
	
	srand(time(NULL));
	for(int i=0;i<size;i++)
	{		a[i]=rand()%20+1;
			cout<<a[i]<<" ";
			if(a[i]<10)
			{
			cout<<" ";
			}
	}
	cout<<"\n";
	int num=rand()%20+1;
	cout<<"random value :"<<num<<"\n";
	
	sort(a,size,num);
	cout<<"\n";
	}